<HTML>
<HEAD>
<meta charset="UTF-8">
<title>DefaultCameraCaptureSource.addVideoSink - amazon-chime-sdk</title>
<link rel="stylesheet" href="../../../style.css">
</HEAD>
<BODY>
<a href="../../index.html">amazon-chime-sdk</a>&nbsp;/&nbsp;<a href="../index.html">com.amazonaws.services.chime.sdk.meetings.audiovideo.video.capture</a>&nbsp;/&nbsp;<a href="index.html">DefaultCameraCaptureSource</a>&nbsp;/&nbsp;<a href="./add-video-sink.html">addVideoSink</a><br/>
<br/>
<h1>addVideoSink</h1>
<a name="com.amazonaws.services.chime.sdk.meetings.audiovideo.video.capture.DefaultCameraCaptureSource$addVideoSink(com.amazonaws.services.chime.sdk.meetings.audiovideo.video.VideoSink)"></a>
<code><span class="keyword">fun </span><span class="identifier">addVideoSink</span><span class="symbol">(</span><span class="identifier" id="com.amazonaws.services.chime.sdk.meetings.audiovideo.video.capture.DefaultCameraCaptureSource$addVideoSink(com.amazonaws.services.chime.sdk.meetings.audiovideo.video.VideoSink)/sink">sink</span><span class="symbol">:</span>&nbsp;<a href="../../com.amazonaws.services.chime.sdk.meetings.audiovideo.video/-video-sink/index.html"><span class="identifier">VideoSink</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code>
<p>Add a video sink which will immediately begin to receive new frames.</p>
<p>Multiple sinks can be added to a single <a href="../../com.amazonaws.services.chime.sdk.meetings.audiovideo.video/-video-source/index.html">VideoSource</a> to allow forking of video frames,
e.g. to send to both local preview and AmazonChimeSDKMedia library (for encoding) at the same time.</p>
<h3>Parameters</h3>
<p><a name="sink"></a>
<code>sink</code> - : <a href="../../com.amazonaws.services.chime.sdk.meetings.audiovideo.video/-video-sink/index.html">VideoSink</a> - New video sink</p>
</BODY>
</HTML>
